<template>
  <div id="app">

    <router-view></router-view>
  </div>
</template>

<style lang="scss" scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
a{
  margin: 0 10px;
}
#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
.router-link-active {
  background: red;
}
</style>
<script>
export default {
  data() {
    return {
    }
  },
    methods: {
           funfa(){
              this.$router.push({path:'/gouwu',query:{name:'小明',age:18}})
           },
           fun(){
            //  this.$router.push({name:'My',params:{name:'nice02',age:20}})
            this.$router.replace({name:'Gouwu',params:{name:'小红',age:18}})
           }
     },
}
</script>